﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="EditStudentInfo.aspx.cs"
    Inherits="LabMS.Web.BaseData.EditStudentInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>修改学生数据</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript">
      function OpenEditWin(frmWin,width,height) 
      {       
           var me; 
           me = window;  
           var ret = window.showModalDialog(frmWin,me,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no');
           if (ret != null) 
           { 
              document.getElementById('tbM').value=ret[0];   //专业ID
              document.getElementById("textboxMajor").value = ret[1];//专业名称
           }  
      }
     function OpenEditWin2(frmWin,width,height) 
      {       
           var me; 
           me = window;  
           var ret = window.showModalDialog(frmWin,me,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no');
           if (ret != null) 
           { 
              document.getElementById('tbC').value=ret[0];   //班级ID
              document.getElementById("textboxClass").value = ret[1];//班级名称
           }  
      }
    </script>

</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <%--<label>
                        <a href="BaseDataStudentList.aspx">学生数据</a>
                    </label>
                    &gt;--%>
                    <label>
                        修改学生信息</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Button ID="btnEdit" runat="server" Text="保存" CssClass="button" OnClick="btnEdit_Click" />
                <input type="button" id="btnCancel" value="返回" onclick="javascript:window.location.href='EditStudentPrew.aspx?ID=<%=StudentID %>'" class="button" />
            </p>
            <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                    <td>
                        <label class="itemTitle">
                            学号</label></td>
                    <td>
                        <asp:TextBox ID="textboxCode" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            姓名</label></td>
                    <td>
                        <asp:TextBox ID="textboxName" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            性别</label></td>
                    <td>
                        <asp:DropDownList ID="ddlSex" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            班级</label></td>
                    <td>
                        <asp:TextBox ID="textboxClass" runat="server"></asp:TextBox><input type="button"
                            value="..." class="button" onclick="OpenEditWin2('ClassListByDBlick.aspx',500,300)" />
                        &nbsp;<font color="red">*</font><asp:TextBox ID="tbC" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            年级</label></td>
                    <td>
                        <asp:DropDownList ID="ddlLJ" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            入学年月</label></td>
                    <td>
                        <asp:TextBox ID="tbRXLY" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            专业</label></td>
                    <td>
                        <asp:TextBox ID="textboxMajor" runat="server"></asp:TextBox><input type="button"
                            value="..." class="button" onclick="OpenEditWin('AddClassChooseMajor.aspx',500,300)" />
                        &nbsp;<font color="red">*</font><asp:TextBox ID="tbM" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            备注</label></td>
                    <td>
                        <asp:TextBox ID="tbSum" runat="server" TextMode="MultiLine" Rows="6" Columns="40"></asp:TextBox></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
